package com.clhbolg.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 定时任务调度日志业务对象 t_job_log
 *
 * @author cailinhu
 * @date 2023-02-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class JobLogBo extends BaseEntity {

    /**
     * 任务日志ID
     */
    @NotNull(message = "任务日志ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 任务ID
     */
    @NotNull(message = "任务ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long jobId;

    /**
     * 任务名称
     */
    @NotBlank(message = "任务名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jobName;

    /**
     * 任务组名
     */
    @NotBlank(message = "任务组名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jobGroup;

    /**
     * 调用目标字符串
     */
    @NotBlank(message = "调用目标字符串不能为空", groups = { AddGroup.class, EditGroup.class })
    private String invokeTarget;

    /**
     * 日志信息
     */
    @NotBlank(message = "日志信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jobMessage;

    /**
     * 执行状态（0正常 1失败）
     */
    @NotNull(message = "执行状态（0正常 1失败）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 异常信息
     */
    @NotBlank(message = "异常信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String exceptionInfo;

    /**
     * 开始时间
     */
    @NotNull(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 结束时间
     */
    @NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;


}
